package com.baibei.ebec.home.index.holder;

import android.view.View;

import com.baibei.basic.SimpleViewHolder;
import com.baibei.ebec.home.R2;
import com.baibei.ebec.util.ViewUtil;
import com.blankj.utilcode.utils.ScreenUtils;
import com.youth.banner.Banner;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * 首页广告+地区的
 * Created by shenminjie on 2017/8/2.
 * mail:shenminjie@100bei.com
 */

public class HomeHeaderViewHolder extends SimpleViewHolder {


    @BindView(R2.id.banner)
    Banner banner;


    public HomeHeaderViewHolder(View itemView) {
        super(itemView);
        ButterKnife.bind(this, itemView);
        ViewUtil.setViewHeight(banner, (int) (ScreenUtils.getScreenWidth() / 2.0833));
    }

    public Banner getBanner() {
        return banner;
    }
}
